package com.ftg.learn.chapter08.supermarket;

/**
 * 产品
 *
 * @author lijiaxin
 * @version 1.0
 * @date 2023/7/25 8:27
 */

public class DemoProduct {

    public static void main(String[] args) {

        ProBrand pb=new ProBrand("康师傅","1978.9.1");
        ProType pt=new ProType("饮料","可以喝的水");

        Product product=new Product();
        product.setBar("123");
        product.setName("哇哈哈");
        product.setPrice(4.0);
        product.setBrand(pb);
        product.setProducer("哇哈哈集团");
        product.setType(pt);

        Product product3=new Product("白象方便面",3.0);
        Product product4=new Product("","",3.0,pb,pt,"");


    }
}


